//
//  LinBoardMacro.h
//  LinBoard
//
//  Created by songjun on 16/8/23.
//  Copyright © 2016年 Sita. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreGraphics/CoreGraphics.h>
#import <UIKit/UIKit.h>
#import <AFNetworking/AFNetworking.h>
#import <MBProgressHUD/MBProgressHUD.h>
#import <MAMapKit/MAMapKit.h>
#import <BabyBluetooth/BabyBluetooth.h>
#import <MAMapKit/MAMapKit.h>
#import <AMapLocationKit/AMapLocationKit.h>
#import <AMapSearchKit/AMapSearchKit.h>
#import <AMapFoundationKit/AMapFoundationKit.h>
#import "MJExtension.h"
#import "Utilization.h"  //
#import "CLLocation+Sino.h" //纠偏
#import <ZipZap/ZipZap.h>
#import <LKDBHelper/LKDBHelper.h>
#import <MJRefresh/MJRefresh.h>
#import "NSString+NSStringHexToBytes.h"
#import "NSTimer+PauseAndOnTimer.h"

@interface LinBoardMacro : NSObject
#define UIColorHexRGBA(rgbValue, alphaValue) [UIColor colorWithRed:(((float)((rgbValue&0xFF0000)>> 16))/255.0) green:(((float)((rgbValue&0x00FF00)>>8))/255.0) blue:(((float)(rgbValue&0x0000FF))/255.0) alpha:alphaValue]
#define linBoardMapkey @"2466321b58ca587e9d1234c6de723e34" 
//高德地图key
#define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width)
#define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.height)

#define linBoardWiteColor  0xffffff

#define linBoardNavitagionColor  0xda1025 //导航栏颜色

#define linBoardSepLineColor 0x909090

#define linBoardBGStartColor 0x909090

#define linBoardBGEndColor  0x909090

#define linBoardBGGrayColor  0xf2f2f2

#define linBoardPolylinColor 0x6299f6



#define APPISTEST 1

#define LinBoardPagesize @"5"

#define linBoardFont11 [UIFont systemFontOfSize:11];
#define linBoardFont12 [UIFont systemFontOfSize:12];
#define linBoardFont13 [UIFont systemFontOfSize:13];
#define linBoardFont14 [UIFont systemFontOfSize:14];
#define linBoardFont15 [UIFont systemFontOfSize:15];
#define linBoardFont16 [UIFont systemFontOfSize:16];
#define linBoardFont17 [UIFont systemFontOfSize:17];
#define linBoardFontBold16 [UIFont boldSystemFontOfSize:16];

//rest接口
#define linboardBaseUrl @"http://123.206.201.243:8090" //根接口

#define linboardRegister @"/linkboard/v1/actors/app/register" //注册

#define linboardLogin @"/linkboard/v1/actors/app/login" //登录

#define linboardGetViaCode @"/linkboard/v1/actors/message/authentication/" //获取验证码

#define linboardChangePwd @"/linkboard/v1/actors/app/resetpassword"//修改密码

#define linboardPushFresh @"/linkboard/v1/messages/machines/routeafter" //下拉刷新

#define linboardPullFresh @"/linkboard/v1/messages/machines/route" //上拉刷新

#define linboardBodaoGetLoc @"http://api.gpslink.cn/api/Point/Last?cid=" //获取位置

#define linboardBodaoGetToken @"http://api.gpslink.cn/api/Token?username="//获取token


//#define linboardBodaoid @"011000809"//波导id

#define linboardBodaoid @"011000876"//波导id

#define linboardBodaoid2 @"011000876"//波导id876

//一键启动  头+pwd+尾
#define linboardStartEngineString @"18180D01313233340100000D0A"
#define linboardStartEngineHead @"18180D01" //头
#define linboardStartEngineTail @"0100000D0A" //尾

//一键关闭
#define linboardStopEngineString @"18180D01313233340000000D0A"
#define linboardStopEngineHead @"18180D01"
#define linboardStopEngineTail @"0000000D0A"

//设防
#define linboardDefenceString @"18180D02313233340100000D0A"
#define linboardDefenceHead @"18180D02"
#define linboardDefenceTail @"0100000D0A"

//撤防
#define linboardUndefenceString @"18180D02313233340000000D0A"
#define linboardUndefenceHead @"18180D02"
#define linboardUndefenceTail @"0000000D0A"

//寻车
#define linboardSearchBikeString @"18180D03313233340100000D0A"
#define linboardSearchBikeHead @"18180D03"
#define linboardSearchBikeTail @"0100000D0A"

//寻密码
#define linboardSearchPwdString @"18180D0D010000000000000D0A"

#define linboardPWDResponse @"18180a0d"//密码返回头,判断返回为密码返回

//特征值
#define linboardPublicCharacteristic @"FFE1"

#define kScreenWidth [UIScreen mainScreen].bounds.size.width
#define kScreenHeight [UIScreen mainScreen].bounds.size.height
// tabBar 高度
#define kTabBarHeight 49.0f
// 导航栏高度
#define kNavigatHeight  64.f
#define FilterBleName @"SITA"
@end
